package com.germinus.telcoblocks.echarts.db;

import org.echarts.servlet.sip.features.registrar.Binding;

public class BindingExt  extends Binding{
	
	private String aor;
	private Long id;
	private int expires;
	
	
	public BindingExt() {
	}
	
	public BindingExt(String aor, String contact) {
		this.aor = aor;
		this.contactAddress = contact;
	}
	
	public String getAor() {
		return aor;
	}
	
	public String getCallId() {
		return callId;
	}
	
	public long getLastCSeq() {
		return lastCSeq;
	}
	
	public String getContactAddress() {
		return contactAddress;
	}
	
	public long getExpiresTime() {
		return expiresTime;
	}
	
	public int getExpires() {
		return expires;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setAor(String aor) {
		this.aor = aor;
	}
	
	public void setCallId(String callId) {
		this.callId = callId;
	}
	
	public void setLastCSeq(long cseq) {
		this.lastCSeq = cseq;
	}
	
	public void setContactAddress(String contact) {
		this.contactAddress = contact;
	}
	
	public void setexpiresTime(long expirationTime) {
		this.expiresTime = expirationTime;
	}
	
	public void setExpires(int expires) {
		this.expires = expires;
		expiresTime = System.currentTimeMillis() + expires * 1000;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

}
